package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SystemRealTimeMapper;
import com.ruoyi.system.domain.SystemRealTime;
import com.ruoyi.system.service.ISystemRealTimeService;

/**
 * 系统实时状态Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-11-13
 */
@Service
public class SystemRealTimeServiceImpl implements ISystemRealTimeService 
{
    @Autowired
    private SystemRealTimeMapper systemRealTimeMapper;

    /**
     * 查询系统实时状态
     * 
     * @param id 系统实时状态主键
     * @return 系统实时状态
     */
    @Override
    public SystemRealTime selectSystemRealTimeById(Integer id)
    {
        return systemRealTimeMapper.selectSystemRealTimeById(id);
    }

    /**
     * 查询系统实时状态列表
     * 
     * @param systemRealTime 系统实时状态
     * @return 系统实时状态
     */
    @Override
    public List<SystemRealTime> selectSystemRealTimeList(SystemRealTime systemRealTime)
    {
        return systemRealTimeMapper.selectSystemRealTimeList(systemRealTime);
    }

    /**
     * 新增系统实时状态
     * 
     * @param systemRealTime 系统实时状态
     * @return 结果
     */
    @Override
    public int insertSystemRealTime(SystemRealTime systemRealTime)
    {
        return systemRealTimeMapper.insertSystemRealTime(systemRealTime);
    }

    /**
     * 修改系统实时状态
     * 
     * @param systemRealTime 系统实时状态
     * @return 结果
     */
    @Override
    public int updateSystemRealTime(SystemRealTime systemRealTime)
    {
        return systemRealTimeMapper.updateSystemRealTime(systemRealTime);
    }

    /**
     * 批量删除系统实时状态
     * 
     * @param ids 需要删除的系统实时状态主键
     * @return 结果
     */
    @Override
    public int deleteSystemRealTimeByIds(Integer[] ids)
    {
        return systemRealTimeMapper.deleteSystemRealTimeByIds(ids);
    }

    /**
     * 删除系统实时状态信息
     * 
     * @param id 系统实时状态主键
     * @return 结果
     */
    @Override
    public int deleteSystemRealTimeById(Integer id)
    {
        return systemRealTimeMapper.deleteSystemRealTimeById(id);
    }
}
